package com.example.idachuappone.index.entity;

import java.io.Serializable;
import org.json.JSONObject;

public class FamilyFeastImgs implements Serializable {
    private String img;
    private String img_small;
    private String name;

    public FamilyFeastImgs parseJson(JSONObject json) {
        if (json == null) {
            return null;
        }
        if (json.has("name")) {
            this.name = json.optString("name");
        }
        if (json.has("img_small")) {
            this.img_small = json.optString("img_small");
        }
        if (!json.has("img")) {
            return this;
        }
        this.img = json.optString("img");
        return this;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImg_small() {
        return this.img_small;
    }

    public void setImg_small(String img_small) {
        this.img_small = img_small;
    }

    public String getImg() {
        return this.img;
    }

    public void setImg(String img) {
        this.img = img;
    }
}
